<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8" />
    <title>HTML5 controls: Task 2</title>
    <link rel="stylesheet" href="../styles.css" />
    <style>
      body {
        background-color: #fff;
        color: #333;
        font: 1em / 1.4 Helvetica Neue, Helvetica, Arial, sans-serif;
        padding: 1em;
        margin: 0;
      }

      * {
        box-sizing: border-box;
      }
    </style>

    <style class="editable">

    </style>
  </head>

  <body>
    <section class="preview">



    </section>

    <textarea class="playable playable-html" style="height: 220px;">
<form>
  <ul>
    <li>
      <label for="max-invite">Select maximum number of invitations</label>
      
    </li>
    <li>
      <button>Submit</button>
    </li>
  </ul>
</form>
    </textarea>

    <div class="playable-buttons">
      <input id="reset" type="button" value="Reset" />
    </div>
  </body>

  <script>
    function setSliderOutput() {
      const invite = document.querySelector('#max-invite');
      const output = document.querySelector('.invite-output');

      output.textContent = invite.value;

      invite.addEventListener('input', function() {
        output.textContent = invite.value;
      });
    }

    setInterval(setSliderOutput, 200);
  </script>
  <script src="../playable.js"></script>
</html>
